package im

import (
	"github.com/gin-gonic/gin"
	"vrcm/src/vrcm/app/admin/apis/im"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerIMRouter)
}

// registerIMRouter
func registerIMRouter(v1 *gin.RouterGroup) {
	api := apis.IM{}
	r := v1.Group("/im")
	{
		r.POST("/create-im", api.CreateIM)
		r.POST("/destroy-im", api.DestroyIM)
		r.POST("/no-speak", api.MultiNoSpeak)
		r.POST("/get-user-sign", api.GetUserSign)
		r.POST("/get-group-info", api.GetGroupInfo)
	}
}
